home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 7
/
Apprentice-Release7.iso
/
Environments
/
PowerFantasm™ 4.19a
/
Beginners guide
/
PPC Examples
/
PPC_Ex_3.s
< prev
next >
Wrap
Text File
|
1996-06-15
|
570b
|
15 lines
includeh ls_ppc_macros.def *the macros we need
includeh general_usage.def *some handy definitions
**Beginners guide to PowerPC assembly language.
**Example 3 - big loop with floating add instruction.
**(C) Lightsoft 1996.
**Program to loop.
start_up *the start_up macro as detailed above - sets up the toc etc
lis r3,0x0fff *load fff into upper 16 bits of r3, replaces above two lines
mtctr r3
loop: nop
fadd f1,f2,f3 *this time we do some floating maths as well
bdnz loop
tidy_up *clear up processors registers and get ready to exit
blr *back to system.